package com.net.xpay.common.manager.stat;

import com.net.common.manager.DomainManager;
import com.net.xpay.common.domain.stat.UserTransMonthStat;
import com.net.xpay.common.model.UserUnionTransMonthStatResultModel;
import com.net.xpay.common.model.search.UserUnionTransMonthStatSearchModel;
import com.net.xpay.core.model.UserTransMonthStatSearchModel;

import java.util.List;


public interface UserTransMonthStatManager extends DomainManager<Long,UserTransMonthStat> {
    UserTransMonthStat findByMonthOfYear(Integer year, Integer month, Long userId);

    List<UserTransMonthStat> search(UserTransMonthStatSearchModel searchModel);

    long searchCount(UserTransMonthStatSearchModel searchModel);

    List<UserTransMonthStat> list(UserTransMonthStatSearchModel searchModel);
    /**
     *聚合查询月统计
     */
    List<UserUnionTransMonthStatResultModel> searchUnion(UserUnionTransMonthStatSearchModel searchModel);
    /**
     *聚合查询条数
     */
    long searchUnionCount(UserUnionTransMonthStatSearchModel searchModel);
}
